home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 1995 #5 & #6 / Amiga Plus CD - 1995 - No. 5 and 6.iso / pd / spiele / gnuchess / src / amiga / makefile.amiga < prev    next >
Makefile  |  1995-08-13  |  17KB  |  479 lines

  1. #
  2. # Makefile for GNU Chess on the Amiga
  3. #
  4. # Copyright (c) 1992, 1995 Free Software Foundation
  5. #
  6. # This file is part of GNU CHESS.
  7. #
  8. # GNU Chess is free software; you can redistribute it and/or modify
  9. # it under the terms of the GNU General Public License as published by
  10. # the Free Software Foundation; either version 2, or (at your option)
  11. # any later version.
  12. #
  13. # GNU Chess is distributed in the hope that it will be useful,
  14. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  16. # GNU General Public License for more details.
  17. #
  18. # You should have received a copy of the GNU General Public License
  19. # along with GNU Chess; see the file COPYING.  If not, write to
  20. # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
  21. #
  22.  
  23.  
  24. #############################################################
  25. #
  26. #   Adjustable settings:
  27. #
  28. #   The language file describes capabilities of the program.
  29. #   Perhaps it is useful for non-English speaking countries
  30. #   and customizing for their convenience and chess
  31. #   happiness.
  32. #
  33. #       LANGF= -DLANGFILE=\"$(LIBDIR)/gnuchess.lang\"
  34. #
  35. #   The hashfile is a record of positions seen. It is used
  36. #   by GNU Chess to avoid making the same mistakes, a form
  37. #   of learning.
  38. #
  39. #       HASH=   -DHASHFILE="$(LIBDIR)/gnuchess.hash"
  40. #
  41. #   The "book" is a record of the first few moves, for
  42. #   playing good moves easily and quickly, saving time, and
  43. #   irritating the human opponent.
  44. #
  45. #       BINBOOK = -DBINBOOK="$(LIBDIR)/gnuchess.data"
  46. #       BINECO = -DBINECO="$(LIBDIR)/gnuchess.eco"
  47. #       PGNECO = -DPGNECO="$(LIBDIR)/eco.pgn"
  48. #
  49. #   The following detemines the books size.
  50. #
  51. #       BOOKOPTS = -S 188000 -P 26     # huge 1450K
  52. #       BOOKOPTS = -S 45000 -P 16      # big 540K
  53. #       BOOKOPTS = -S 20000 -P 12      # medium 240K
  54. #       BOOKOPTS = -S 12000 -P 10      # small 144K
  55. #       BOOKOPTS = -S 9000 -P 8        # tiny 78K
  56. #
  57. #############################################################
  58.  
  59.  
  60. #############################################################
  61. #
  62. #   Use this to compile with GNU C and GNU make
  63. #
  64. #############################################################
  65.  
  66. #CC      = gcc -noixemul
  67. #CCFLAGS = -DHAVE_SYS_TIME_H=1 -DHAVE_GETTIMEOFDAY=1 \
  68. #          -DHAVE_STRTOUL=1 -DHAVE_MEMSET=1 -DHAVE_TIME_H=1 \
  69. #          -D_amigados -s -O -IWork:curses210
  70. #LDFLAGS = -s
  71. #LIBS    = -lm
  72. #LCURSES = -LWork:curses210 -lcurses
  73. #
  74. #LIBDIR  = PROGDIR:lib
  75. #BOOK    = ../book/gnuchess.bk3.gz
  76. #LANGF   = -DLANGFILE=\"$(LIBDIR)/gnuchess.lang\"
  77. #HASH    = -DHASHFILE=\"$(LIBDIR)/gnuchess.hash\"
  78. #BINBOOK = -DBINBOOK=\"$(LIBDIR)/gnuchess.data\"
  79. #BINECO  = -DBINECO=\"$(LIBDIR)/gnuchess.eco\"
  80. #PGNECO  = -DPGNECO=\"$(LIBDIR)/gnuchess.pgn\"
  81.  
  82.  
  83. #############################################################
  84. #
  85. #   Use this to compile with Dice and dmake
  86. #
  87. #############################################################
  88.  
  89. CC      = dcc
  90. CCFLAGS = -mD -IWork:curses210 -DHAVE_SYS_TIME_H=1 -Dinline \
  91.       -DHAVE_GETTIMEOFDAY=1 -DHAVE_STRTOUL=1 -DHAVE_MEMSET=1 \
  92.       -DHAVE_TIME_H=1 -D_amigados
  93. LDFLAGS = -mD
  94. LIBS    = -lm
  95. LCURSES = -LWork:curses210/dlib -lcurses
  96.  
  97. LIBDIR  = PROGDIR:lib
  98. BOOK    = /book/gnuchess.bk3.gz
  99. LANGF   = -DLANGFILE="$(LIBDIR)/gnuchess.lang"
  100. HASH    = -DHASHFILE="$(LIBDIR)/gnuchess.hash"
  101. BINBOOK = -DBINBOOK="$(LIBDIR)/gnuchess.data"
  102. BINECO  = -DBINECO="$(LIBDIR)/gnuchess.eco"
  103. PGNECO  = -DPGNECO="$(LIBDIR)/gnuchess.pgn"
  104.  
  105.  
  106. #############################################################
  107. #
  108. #   Use this to compile with SAS/C and smake; assumes
  109. #   Unix compatible frontend, for example dev/c/cc.lha
  110. #   from Aminet.
  111. #
  112. #############################################################
  113.  
  114. #CC      = cc -sas
  115. #CCFLAGS = WITH Amiga/SCOptions
  116. #LDFLAGS = WITH Amiga/SCOptions
  117. #LIBS    =
  118. #LCURSES = LIBRARY Work:curses210/cursesmnb.lib
  119. #
  120. #LIBDIR  = PROGDIR:lib
  121. #BOOK    = ../book/gnuchess.bk3.gz
  122. #LANGF   = -DLANGFILE="$(LIBDIR)/gnuchess.lang"
  123. #HASH    = -DHASHFILE="$(LIBDIR)/gnuchess.hash"
  124. #BINBOOK = -DBINBOOK="$(LIBDIR)/gnuchess.data"
  125. #BINECO  = -DBINECO="$(LIBDIR)/gnuchess.eco"
  126. #PGNECO  = -DPGNECO="$(LIBDIR)/gnuchess.pgn"
  127.  
  128.  
  129. #############################################################
  130. #
  131. #   You should not need to change anything below.
  132. #
  133. #############################################################
  134.  
  135. #compile options for gnuchess
  136. #    Search options
  137. # -DHISTORY use history heuristic 
  138. # -DKILLT use killt killer heuristic 
  139. # -DNULLMOVE include null move heuristic
  140. # -DDEEPNULL include deepnull move heuristic
  141. # -DUNLIMITEDCAPS allow unlimited depth captures
  142. # -DPRUNE enable marginal forward pruning
  143. # -DNOMATERIAL don't call it a draw when no pawns and both sides < rook
  144. # -DNODYNALPHA don't dynamically adjust alpha
  145. # -DOLDTIME use old ply time estimating function
  146. # -DCACHE  Cache static evaluations 
  147. # -DNODITHER no random element to evaluations
  148. #
  149. #    Verbosity options
  150. # -DBAREBONES compile for max speed no statistics etc kept
  151. # -DQUIETBACKGROUND don't print post information in background ( easy OFF)
  152. # -DHASHSTATS keep hash table statistics
  153. # -DMORESTATS print more hash table stats
  154. # -DQUIETBOOKGEN Don't print errors while loading a book or generating a binbook
  155. # -DSEMIQUIETBOOKGEN Print less verbose errors while reading book or generating binbook
  156. #
  157. #    Miscellaneous options
  158. # -DECO if you want support for eco database
  159. # -DCLIENT create client version for use with ICS
  160. # -DLONG64 if you have 64bit longs
  161. # -DSYSV   if you are using SYSV
  162. #
  163. #    Some debug options
  164. # -DDEBUG8 dump board,movelist,input move to /tmp/DEBUG if illegal move
  165. # -DDEBUG9 dump move list from test command
  166. # -DDEBUG10 dump board and move after search before !easy begins
  167. # -DDEBUG11 dump board when the move is output
  168. # -DDEBUG12 dump boards between moves
  169. # -DDEBUG13 dump search control information for each move to /tmp/DEBUG
  170. # -DDEBUG33 dump book moves as read from book
  171. # -DDEBUG40 include extra values of variables for debugging  in game list
  172. # -DDEBUG41 dump post output to /tmp/DEBUG
  173. # the rest of the debug options are tied to the debuglevel command
  174. # -DDEBUG sets up code for debuglevel command
  175. #          debuglevel
  176. #               1 always force evaluation in evaluate
  177. #               4 print move list after search
  178. #               8 print move list after book before search
  179. #              16 print move list after each ply of search
  180. #              32 print adds to transposition table
  181. #              64 print returns from transposition table lookups
  182. #             128 print evals
  183. #             256 print search tree as it is generated
  184. #             512 debug trace of search tree
  185. #            1024 interactive tree print
  186. #
  187.  
  188. ###############  End of Gnuchess definitions ######################
  189.  
  190. DEFINES = -DUSEINT -DCACHE -DGDX -DNULLMOVE -DWAY4PL64 -DHISTORY \
  191.       -DAGING -DKILLT -DUNLIMITEDCAPS -DPRUNE -DOLDTIME -DECO \
  192.       -DHASHSTATS
  193. CFLAGS  = $(CCFLAGS) $(DEFINES)
  194. ALL_LDFLAGS = $(LDFLAGS)
  195.  
  196.  
  197. BINARIES= gnuchess gnuchessr gnuchessn gnuchessx postprint \
  198.       gnuan game ecor ecosort ecocvt binsort
  199. LIBRARIES=gnuchess.data gnuchess.eco
  200.  
  201. DISTDIR = gnuchess-4.0.pl75
  202. AMIGABIN= Amiga/Install Amiga/Install.info
  203.  
  204. DISTBIN = $(BINARIES) $(AMIGABIN)
  205. DISTLIB = $(LIBRARIES) /misc/gnuchess.lang
  206. DISTDOC=/doc/ARTICLE /doc/ARTICLE.2 /doc/ChangeLog \
  207.     /doc/CHANGES /doc/COPYING /doc/GENERAL /doc/gnuan.6 \
  208.     /doc/gnuan.hlp /doc/gnuchess.6 /doc/gnuchess.txt \
  209.     /doc/HEURISTICS /doc/MOVE-GEN /doc/PORTING \
  210.     /doc/postprint.6 /doc/README.font /doc/README.output \
  211.     /doc/TODO /doc/game.6 Amiga/doc.info
  212. DISTSRC = $(AMIGABIN) Amiga/gettimeofday.c Amiga/kbhit.c \
  213.       $(DISTDIR).patch Amiga/makedata Amiga/doc.info \
  214.       Amiga/makeeco Amiga/Makefile.amiga Amiga/SCOptions
  215.  
  216.  
  217. all: $(BINARIES) $(LIBRARIES)
  218.  
  219. clean:
  220.     rm -f $(BINARIES)
  221.     rm *.o #*# *~ CL* PATCH* %*% *orig
  222.  
  223. distclean: clean tidy
  224.     rm -f config.cache config.log config.status Makefile
  225.  
  226. mostlyclean: clean
  227.  
  228. realclean: distclean
  229.  
  230. gnuchess: mainN.o bookN.o genmovesN.o ataks.o utilN.o evalN.o init.o searchN.o dspcomN.o uxdsp.o gettimeofday.o kbhit.o
  231.     $(CC) $(CFLAGS) $(HASH) $(LANGF)  -o gnuchess mainN.o bookN.o genmovesN.o ataks.o utilN.o evalN.o init.o searchN.o dspcomN.o uxdsp.o gettimeofday.o kbhit.o $(LCURSES) $(LIBS)
  232.  
  233. gnuan: mainN.o bookG.o genmovesN.o ataks.o utilN.o evalN.o init.o searchG.o gnuan.o gettimeofday.o kbhit.o
  234.     $(CC) $(CFLAGS) $(HASH) $(LANGF) -DIGNUAN  -o gnuan mainN.o bookG.o genmovesN.o ataks.o utilN.o evalN.o init.o searchG.o gnuan.o gettimeofday.o kbhit.o $(LIBS)
  235.  
  236. gnuchessc: mainC.o bookC.o genmovesC.o ataks.o utilC.o evalC.o init.o searchC.o dspcomC.o nondspC.o gettimeofday.o kbhit.o
  237.     $(CC) $(CFLAGS) $(HASH) $(LANGF)  -o gnuchessc mainC.o bookC.o genmovesC.o ataks.o utilC.o evalC.o init.o searchC.o dspcomC.o nondspC.o gettimeofday.o kbhit.o $(LIBS)
  238.  
  239. Dgnuchessr: mainDR.o bookN.o genmovesN.o ataks.o utilDR.o evalDR.o init.o searchDR.o dspcomDR.o nondspDR.o gettimeofday.o kbhit.o
  240.     $(CC)  -DDEBUG  -DDEBUG4 $(CFLAGS) $(HASH) $(LANGF)  -o gnuchessr mainDR.o bookN.o genmovesN.o ataks.o utilDR.o evalDR.o init.o searchDR.o dspcomDR.o nondspDR.o gettimeofday.o kbhit.o $(LIBS) $(LIBS)
  241.  
  242. gnuchessx: mainX.o bookX.o genmovesX.o ataks.o utilX.o evalX.o init.o searchX.o dspcomX.o nondspX.o gettimeofday.o
  243.     $(CC) $(CFLAGS) $(HASH) $(LANGF)  -o gnuchessx mainX.o bookX.o genmovesX.o ataks.o utilX.o evalX.o init.o searchX.o dspcomX.o nondspX.o gettimeofday.o $(LIBS)
  244.  
  245. ecor: mainN.o eco.o genmovesN.o ataks.o utilN.o evalN.o init.o searchN.o dspcomR.o nondspR.o gettimeofday.o kbhit.o
  246.     $(CC) $(CFLAGS) $(HASH) $(LANGF)  -o ecor mainN.o eco.o genmovesN.o ataks.o utilN.o evalN.o init.o searchN.o dspcomR.o nondspR.o gettimeofday.o kbhit.o $(LIBS)
  247.  
  248. gnuchessr: mainN.o bookN.o genmovesN.o ataks.o utilN.o evalN.o init.o searchN.o dspcomR.o nondspR.o gettimeofday.o kbhit.o
  249.     $(CC) $(CFLAGS) $(HASH) $(LANGF)  -o gnuchessr mainN.o bookN.o genmovesN.o ataks.o utilN.o evalN.o init.o searchN.o dspcomR.o nondspR.o gettimeofday.o kbhit.o $(LIBS)
  250.  
  251. gnuchessn: mainN.o bookN.o genmovesN.o ataks.o utilN.o evalN.o init.o searchN.o dspcomN.o nuxdsp.o gettimeofday.o kbhit.o
  252.     $(CC) $(CFLAGS) $(HASH) $(LANGF)  -o gnuchessn mainN.o bookN.o genmovesN.o ataks.o utilN.o evalN.o init.o searchN.o dspcomN.o nuxdsp.o gettimeofday.o kbhit.o $(LCURSES) $(LIBS)
  253.  
  254. game: game.c gnuchess.h
  255.     $(CC) $(CFLAGS) -o game game.c
  256.     
  257. postprint: postprint.o
  258.     $(CC) $(CFLAGS) $(HASH) -o postprint postprint.o
  259.     
  260. gnuan.o: gnuan.c gnuchess.h version.h
  261.     $(CC) $(CFLAGS) $(HASH) $(LANGF) -DIGNUAN $(BINBOOK) -c gnuan.c
  262.  
  263. mainN.o: main.c gnuchess.h version.h ttable.h
  264.     $(CC) $(CFLAGS) $(HASH) $(LANGF)  $(BINBOOK) -c main.c
  265.     mv main.o mainN.o
  266.  
  267. mainC.o: main.c gnuchess.h version.h ttable.h
  268.     $(CC) $(CFLAGS) $(HASH) $(LANGF)  $(BINBOOK) -DNONDSP -DCHESSTOOL \
  269.         -c main.c
  270.     mv main.o mainC.o
  271.  
  272. mainX.o: main.c gnuchess.h version.h ttable.h
  273.     $(CC) $(CFLAGS) $(HASH) $(LANGF)  $(BINBOOK) -DXBOARD  -c main.c
  274.     mv main.o mainX.o
  275.  
  276. mainDR.o: main.c gnuchess.h version.h ttable.h
  277.     $(CC)  -DDEBUG -DDEBUG4 $(CFLAGS) $(HASH) $(LANGF)  $(BINBOOK) \
  278.         -c main.c
  279.     mv main.o mainDR.o
  280.  
  281. genmovesN.o: genmoves.c gnuchess.h version.h ttable.h
  282.     $(CC) $(CFLAGS) $(HASH) $(LANGF)  -c genmoves.c
  283.     mv genmoves.o genmovesN.o
  284.  
  285. genmovesC.o: genmoves.c gnuchess.h version.h ttable.h
  286.     $(CC) $(CFLAGS) $(HASH) $(LANGF)  -DNONDSP -DCHESSTOOL \
  287.         -c genmoves.c 
  288.     mv genmoves.o genmovesC.o
  289.  
  290. genmovesX.o: genmoves.c gnuchess.h version.h ttable.h
  291.     $(CC) $(CFLAGS) $(HASH) $(LANGF)  -DXBOARD \
  292.         -c genmoves.c
  293.     mv genmoves.o  genmovesX.o
  294.  
  295. eco.o: eco.c gnuchess.h version.h ataks.h ttable.h
  296.     $(CC) $(CFLAGS) $(HASH) $(LANGF)  $(BINBOOK) $(BINECO)  $(PGNECO) -c eco.c 
  297.  
  298. bookN.o: book.c gnuchess.h version.h ataks.h ttable.h
  299.     $(CC) $(CFLAGS) $(HASH) $(LANGF)  $(BINBOOK) $(PGNECO) $(BINECO) -c book.c 
  300.     mv book.o bookN.o
  301.  
  302. bookG.o: book.c gnuchess.h version.h ataks.h ttable.h
  303.     $(CC) $(CFLAGS) $(HASH) $(LANGF)  $(BINBOOK) $(PGNECO) $(BINECO) -DIGNUAN  -c book.c 
  304.     mv book.o bookG.o
  305.  
  306. bookC.o: book.c gnuchess.h version.h ataks.h ttable.h
  307.     $(CC) $(CFLAGS) $(HASH) $(LANGF)  -DNONDSP -DCHESSTOOL \
  308.           $(BINBOOK) \
  309.         $(PGNECO) $(BINECO) -c book.c 
  310.     mv book.o bookC.o
  311.  
  312. bookX.o: book.c gnuchess.h version.h ataks.h ttable.h
  313.     $(CC) $(CFLAGS) $(HASH) $(LANGF)  -DXBOARD  $(BINBOOK) \
  314.         $(PGNECO) $(BINECO) -c book.c
  315.     mv book.o  bookX.o
  316.  
  317. ataks.o: ataks.h ataks.c gnuchess.h version.h ttable.h
  318.     $(CC) $(CFLAGS) $(HASH) $(LANGF)  -c ataks.c
  319.  
  320. utilN.o: util.c gnuchess.h version.h
  321.     $(CC) $(CFLAGS) $(HASH) $(LANGF)  -c util.c
  322.     mv util.o utilN.o
  323.  
  324. utilX.o: util.c gnuchess.h version.h
  325.     $(CC) $(CFLAGS) $(HASH) $(LANGF)   \
  326.          -c util.c
  327.     mv util.o  utilX.o
  328.  
  329. utilC.o: util.c gnuchess.h version.h
  330.     $(CC) $(CFLAGS) $(HASH) $(LANGF)   \
  331.          -c util.c
  332.     mv util.o  utilC.o
  333.  
  334. evalC.o: eval.c gnuchess.h version.h ttable.h
  335.     $(CC) $(CFLAGS) $(HASH) $(LANGF)   -c eval.c
  336.     mv eval.o evalC.o
  337.  
  338. evalX.o: eval.c gnuchess.h version.h ttable.h
  339.     $(CC) $(CFLAGS) $(HASH) $(LANGF)   -c eval.c
  340.     mv eval.o evalX.o
  341.  
  342. evalN.o: eval.c gnuchess.h version.h ttable.h
  343.     $(CC) $(CFLAGS) $(HASH) $(LANGF)  -c eval.c
  344.     mv eval.o evalN.o
  345.  
  346. evalDR.o: eval.c gnuchess.h version.h ttable.h
  347.     $(CC)  -DDEBUG4 -DDEBUG $(CFLAGS) $(HASH) $(LANGF)  \
  348.         -c eval.c 
  349.     mv eval.o evalDR.o
  350.  
  351. utilDR.o: util.c gnuchess.h version.h
  352.     $(CC)  -DDEBUG4 -DDEBUG $(CFLAGS) $(HASH) $(LANGF)  \
  353.         -c util.c 
  354.     mv util.o utilDR.o
  355.  
  356. init.o: init.c gnuchess.h version.h ttable.h
  357.     $(CC) $(CFLAGS) $(HASH) $(LANGF)  -c init.c
  358.  
  359. searchN.o: search.c gnuchess.h version.h debug512.h debug10.h debug13.h debug16.h debug256.h debug4.h debug40.h debug41.h debug64.h debug8.h ttable.h ttable.c
  360.     $(CC) $(CFLAGS) $(HASH) $(LANGF)  -c search.c
  361.     mv search.o searchN.o
  362.  
  363. searchG.o: search.c gnuchess.h version.h debug512.h debug10.h debug13.h debug16.h debug256.h debug4.h debug40.h debug41.h debug64.h debug8.h ttable.h ttable.c
  364.     $(CC) $(CFLAGS) $(HASH) $(LANGF) -DIGNUAN  -c search.c
  365.     mv search.o searchG.o
  366.  
  367. searchC.o: search.c gnuchess.h version.h debug512.h debug10.h debug13.h debug16.h debug256.h debug4.h debug40.h debug41.h debug64.h debug8.h ttable.h ttable.c
  368.     $(CC) $(CFLAGS) $(HASH) $(LANGF)  -DNONDSP -DCHESSTOOL \
  369.         -c search.c 
  370.     mv search.o searchC.o
  371.  
  372. searchX.o: search.c gnuchess.h version.h debug512.h debug10.h debug13.h debug16.h debug256.h debug4.h debug40.h debug41.h debug64.h debug8.h ttable.h ttable.c
  373.     $(CC) $(CFLAGS) $(HASH) $(LANGF)  -DXBOARD \
  374.         -c search.c 
  375.     mv search.o searchX.o
  376.  
  377. searchDR.o: search.c gnuchess.h version.h debug512.h debug10.h debug13.h debug16.h debug256.h debug4.h debug40.h debug41.h debug64.h debug8.h ttable.h ttable.c
  378.     $(CC)  -DDEBUG4 -DDEBUG $(CFLAGS) $(HASH) $(LANGF)  \
  379.         -c search.c 
  380.     mv search.o searchDR.o
  381.  
  382. uxdsp.o: uxdsp.c gnuchess.h version.h
  383.     $(CC) $(CFLAGS) $(HASH) $(LANGF)  -c uxdsp.c
  384.  
  385. nuxdsp.o: nuxdsp.c gnuchess.h version.h
  386.     $(CC) $(CFLAGS) $(HASH) $(LANGF)  -c nuxdsp.c
  387.  
  388. nondspC.o: nondsp.c gnuchess.h version.h
  389.     $(CC) $(CFLAGS) $(HASH) $(LANGF)  -DNONDSP -DCHESSTOOL \
  390.         -c nondsp.c 
  391.     mv nondsp.o nondspC.o
  392.  
  393. nondspX.o: nondsp.c gnuchess.h version.h
  394.     $(CC) $(CFLAGS) $(HASH) $(LANGF)  -DNONDSP -DXBOARD \
  395.         -c nondsp.c 
  396.     mv nondsp.o nondspX.o
  397.  
  398. nondspR.o: nondsp.c gnuchess.h version.h
  399.     $(CC) $(CFLAGS) $(HASH) $(LANGF)  -DNONDSP \
  400.         -c nondsp.c 
  401.     mv nondsp.o nondspR.o
  402.  
  403. nondspDR.o: nondsp.c gnuchess.h version.h
  404.     $(CC)  -DDEBUG4 -DDEBUG $(CFLAGS) $(HASH) $(LANGF)  -DNONDSP \
  405.          -c nondsp.c 
  406.     mv nondsp.o nondspDR.o
  407.  
  408. dspcomN.o: dspcom.c gnuchess.h version.h
  409.     $(CC) $(CFLAGS) $(HASH) $(LANGF)  -c dspcom.c
  410.     mv dspcom.o dspcomN.o
  411.  
  412. dspcomC.o: dspcom.c gnuchess.h version.h
  413.     $(CC) $(CFLAGS) $(HASH) $(LANGF)  -DNONDSP -DCHESSTOOL \
  414.         -c dspcom.c 
  415.     mv dspcom.o dspcomC.o
  416.  
  417. dspcomX.o: dspcom.c gnuchess.h version.h
  418.     $(CC) $(CFLAGS) $(HASH) $(LANGF)  -DNONDSP -DXBOARD \
  419.         -c dspcom.c 
  420.     mv dspcom.o dspcomX.o
  421.  
  422. dspcomR.o: dspcom.c gnuchess.h version.h
  423.     $(CC) $(CFLAGS) $(HASH) $(LANGF)  -DNONDSP \
  424.         -c dspcom.c 
  425.     mv dspcom.o dspcomR.o
  426.  
  427. dspcomDR.o: dspcom.c gnuchess.h version.h
  428.     $(CC)  -DDEBUG -DDEBUG4 $(CFLAGS) $(HASH) $(LANGF)  -DNONDSP \
  429.         -c dspcom.c 
  430.     mv dspcom.o dspcomDR.o
  431.  
  432. postprint.o: postprint.c gnuchess.h version.h
  433.     $(CC) $(CFLAGS) $(HASH) -c postprint.c
  434.  
  435. binsort: binsort.c binsort.h
  436.     $(CC) $(CFLAGS) -o binsort binsort.c
  437.  
  438. ecosort: ecosort.c gnuchess.h
  439.     $(CC) $(CFLAGS) -o ecosort ecosort.c
  440.  
  441. ecocvt: ecocvt.c
  442.     $(CC) $(CFLAGS) -o ecocvt ecocvt.c
  443.  
  444. gettimeofday.o: Amiga/gettimeofday.c
  445.     $(CC) $(CFLAGS) -c -o gettimeofday.o Amiga/gettimeofday.c
  446.  
  447. kbhit.o: Amiga/kbhit.c
  448.     $(CC) $(CFLAGS) -c -o kbhit.o Amiga/kbhit.c
  449.  
  450. gnuchess.data: $(BOOK)
  451.     Amiga/makedata "$(BOOKOPTS)" "$(BOOK)"
  452.  
  453. gnuchess.eco: ecor binsort ecocvt ecosort
  454.     Amiga/makeeco
  455.  
  456. dist: distsrc distbin
  457.  
  458. distbin: all
  459.     C:Delete t:$(DISTDIR) t:$(DISTDIR).info t:$(DISTDIR)bin.lha ALL QUIET
  460.     C:MakeDir t:$(DISTDIR)
  461.     C:MakeDir t:$(DISTDIR)/lib
  462.     C:MakeDir t:$(DISTDIR)/doc
  463.     C:Copy $(DISTBIN) t:$(DISTDIR)
  464.     C:Copy $(DISTDOC) t:$(DISTDIR)/doc
  465.     C:Copy $(DISTLIB) t:$(DISTDIR)/lib
  466.     C:Copy //$(DISTDIR).info t:
  467.     LhA a -r t:$(DISTDIR)bin.lha t:$(DISTDIR) t:$(DISTDIR).info
  468.     C:Protect t:$(DISTDIR) +wd ALL
  469.     C:Delete t:$(DISTDIR) t:$(DISTDIR).info ALL QUIET
  470.  
  471. distsrc:
  472.     C:Delete t:$(DISTDIR) t:$(DISTDIR)diffs.lha ALL QUIET
  473.     C:MakeDir t:$(DISTDIR)
  474.     C:MakeDir t:$(DISTDIR)/src
  475.     C:Copy $(DISTSRC) t:$(DISTDIR)/src
  476.     LhA a -r t:$(DISTDIR)diffs.lha t:$(DISTDIR)
  477.     C:Protect t:$(DISTDIR) +wd ALL QUIET
  478.     C:Delete t:$(DISTDIR) ALL QUIET
  479.